<?php
	abstract class IMDB_Search_Result {		private $iType;
		private $sTitle;
		private $sID;
		private $sURL;
		private $sImgUrl;

		public function __construct($oInput) {
			$this->iType = $oInput->iType;
			$this->sTitle = $oInput->sTitle;
			$this->sID = $oInput->sID;
			$this->sURL = $oInput->sLink;
			$this->sImgUrl = $oInput->sImage;
		}
		public function getType() {
			return $this->iType;
		}
		public function getTitle() {
			return $this->sTitle;
		}
		public function getID() {
			return $this->sID;
		}
		public function getURL() {
			return IMDB::URL_BASE . $this->sURL;
		}
		public function getImg($Width = 500, $Height = 500) {
			if (!$this->sImgUrl)
				return "";
			return sprintf($this->sImgUrl, $Height, $Width);
		}
	}
?>